package com.xinke.module.system.model.vo.tenant;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 租户新增/修改 Request VO")
@Data
public class TenantSaveReqVO {

    @Schema(description = "租户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "22254")
    private Long tenantId;

    @Schema(description = "租户名", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "租户名不能为空")
    private String tenantName;

    @Schema(description = "联系人的用户编号", example = "15233")
    private Long contactUserId;

    @Schema(description = "联系人", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @NotEmpty(message = "联系人不能为空")
    private String contactName;

    @Schema(description = "联系手机")
    private String contactPhone;

    @Schema(description = "租户状态（1正常 0停用）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "租户状态（1正常 0停用）不能为空")
    private Integer tenantStatus;

    @Schema(description = "绑定域名")
    private String bindWebsite;

    @Schema(description = "租户套餐编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "110")
    @NotNull(message = "租户套餐编号不能为空")
    private Long packageId;

    @Schema(description = "过期时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "过期时间不能为空")
    private LocalDateTime expireTime;

    @Schema(description = "账号数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "21982")
    @NotNull(message = "账号数量不能为空")
    private Integer accountCount;

}